using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class 进度条动画 : MonoBehaviour
{
    public Animator anim;
    public GameObject 进度条;
    public GameObject 进入游戏;
    // Start is called before the first frame update
    void Start()
    {
        // 协程播放动画
        StartCoroutine(Play());
    }

    // 协程播放动画
    IEnumerator Play()
    {
        anim.Play("1");
        yield return new WaitForSeconds(8);
        进度条.SetActive(false);
        yield return new WaitForSeconds(1);
        进入游戏.SetActive(true);
    }

    // Update is called once per frame
    void Update()
    {
        
    }
}
